import React from 'react'
import {ButtonType} from "../DataType";
import {Menu} from 'antd'

interface ButtonGroupType {
    btnGroup: Array<ButtonType>
    cRef: any
}

function ButtonTableGroup(props: ButtonGroupType) {
    const {btnGroup} = props;
    console.log(btnGroup)
    return (
        <Menu className={'btn-group-view'} selectedKeys={[]} mode="horizontal">
            {btnGroup.map((item) => {
                return (
                    <Menu.Item key={item.key} icon={item.icon} onClick={item.onClick}>
                        {item.title}
                    </Menu.Item>
                )
            })}
        </Menu>
    )
}

export default ButtonTableGroup
